using System;
using System.Collections.Generic;
using System.Text;

using System.IO;

namespace GLuaR.Classes
{
    class HTML
    {

        private string Code = "";

        public HTML()
        {

        }

        ~HTML()
        {

        }

        public void AddLine(string line)
        {
            Code += line;
        }

        public MemoryStream GetStream()
        {
            string Code = "";
            Code = this.Code;
            Code = Code.Replace("\n", "<br>");
            MemoryStream str = new MemoryStream(System.Text.Encoding.ASCII.GetBytes(Code));
            return str;
        }

        public void Header()
        {
            AddLine("<html><head><title>Blank</title></head><body>");
        }

        public void Footer()
        {
            AddLine("</body></html>");
        }

    }
}
